use rjvm_vm::vm::{VM, VMParams};

#[test]
fn vm_test1() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main1".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}


#[test]
fn vm_test2() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main2".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}

#[test]
fn vm_test3() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main3".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}


#[test]
fn vm_test4() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main4".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}


#[test]
fn vm_test5() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main5".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}



#[test]
fn vm_test6() {
    let params = VMParams {
        jdk_lib_path: "C:/Software/jdk-11.0.14+9/jmods".to_string(),
        class_path: "C:/Code/rjvm/java-example/target/classes".to_string(),
        main_class: "org/example/test/Main6".to_string(),
    };
    let result = VM::start(&params);
    println!("result:{}", result);
}